home *** CD-ROM | disk | FTP | other *** search
/ Joint Education Initiative / Joint Education Initiative.iso / programs / dos / gna / image / boundary / coastlo / coastlo.doc < prev    next >
Text File  |  1989-03-24  |  3KB  |  58 lines

  1. GEOPHYSICS OF NORTH AMERICA - LOW-RESOLUTION COASTLINES
  2.                                                                coastlo.doc
  3. This directory contains low-resolution coastlines.
  4.  
  5. These data were extracted from World Data Bank 1 and are suitable for
  6. quickly drawing a geographic reference onto a large-scale area (like all of
  7. the U.S).  Each contiguous section of each boundary line is called a segment
  8. and each segment is made up of some number of line fragments.  Each segment
  9. starts with an implicit move command and the fragments are the endpoints of
  10. a series of draw commands.  The data storage scheme therefore has three
  11. basic units: regions, segments, and points (where points are the ends of
  12. fragments).
  13.  
  14. The regionalization of the data is expressed in the file structure.  The
  15. data are stored in 6 files, each called COASTLO.NUM, where NUM is the region
  16. number.  Each data file has the longitude and latitude pairs of the
  17. endpoints of the boundary lines for all of the boundaries within the given
  18. region.  These values are stored in two 4-byte floating point numbers.
  19.  
  20. Parameters for Low-resolution boundary Regions:
  21.   Region   Minimum  Minimum   Maximum  Maximum Number of Number of
  22.          Longitude Latitude Longitude Latitude  Segments    Points
  23.        0     170.1     60.3     269.7     80.1        54      4485
  24.        1     270.3     60.3     347.6     83.6        54      4830
  25.        2     172.3     28.0     253.5     59.9        58      1309
  26.        3     260.8     25.1     350.0     60.0        44      1963
  27.        4     170.8      0.0     350.0     24.8       118      2634
  28.        5     170.0     15.6     350.0     83.1        26      4772
  29.  
  30. Note: The final region covers the entire area and is, therefore opened
  31. in every search. This region catches all of the segments which do not fit
  32. into the other regions. 
  33.  
  34. The index file (COASTLO.INX) contains information about the segments.  There
  35. is one 20 byte record for each segment.  Each record contains the boundary
  36. level for the segment (2 byte integer), the minimum longitude (degrees
  37. east), minimum latitude, maximum longitude (degrees east), maximum latitude
  38. of the box surrounding the segment (each a 4 byte floating point number),
  39. and the number of points in the segment (2 byte integer).  The relationship
  40. between the index file and the data files is known through the byte offset
  41. to the beginning of each data set in the index file.  These byte offsets can
  42. be calculated from the number of segments in each data set (20 * cumulative
  43. number of segments).
  44.  
  45. These are the offsets in bytes to the first segment of each region in the
  46. Low-resolution boundary index file:
  47.  
  48.   Region Offset Region Offset Region Offset Region Offset Region Offset
  49.        0      0      1   1080      2   2160      3   3320      4   4200
  50.        5   6560
  51.  
  52. The region parameters and the byte offsets are contained in the file
  53. boundary.h which is on your program disk. 
  54.  
  55. The programs listindx and listdata (on the accompanying diskette) read the
  56. index and data files respectively and output the contents to standard output
  57. as ASCII. 
  58.